import React, {Component} from 'react'
import {InterfaceStatusWrapper} from './../styled'
import {Icon} from 'antd'

export default class InterfaceStatus extends Component {
    render() {
        return (
            <InterfaceStatusWrapper>
                <div className={`interface-icon ${this.props.imgClass}`}> </div>
                {this.props.name}
                <Icon type={this.props.status ? 'check' : 'close'} className="status-icon"/>
            </InterfaceStatusWrapper>
        )
    }
}